package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.entity.Brand;
import com.lanchetech.entity.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

@Mapper
public interface CategoryBrandMapper {
    int insert(CategoryBrand record);

    int insertSelective(CategoryBrand record);

    int batchInsert(@Param("list") List<Long> list, @Param("categoryId") Long categoryId);

    int deleteByBrandId(@Param("brandId")Long brandId);

    int deleteByCategoryId(@Param("categoryId")Long categoryId);

    List<CategoryBrand> findAllByBrandId(@Param("brandId")Long brandId);

    List<CategoryBrand> findAllByCategoryId(@Param("categoryId")Long categoryId);

    List<Brand> findAllBrandByCategoryId(@Param("categoryId")Long categoryId);
}